import request from '@/utils/request'

// 查询用户路线收藏列表
export function listUserRouteFavorite(query) {
  return request({
    url: '/jiu-mount-huangshan/userRouteFavorite/list',
    method: 'get',
    params: query
  })
}

// 查询用户路线收藏详细
export function getUserRouteFavorite(id) {
  return request({
    url: '/jiu-mount-huangshan/userRouteFavorite/' + id,
    method: 'get'
  })
}

// 新增用户路线收藏
export function addUserRouteFavorite(data) {
  return request({
    url: '/jiu-mount-huangshan/userRouteFavorite',
    method: 'post',
    data: data
  })
}

// 修改用户路线收藏
export function updateUserRouteFavorite(data) {
  return request({
    url: '/jiu-mount-huangshan/userRouteFavorite',
    method: 'put',
    data: data
  })
}

// 删除用户路线收藏
export function delUserRouteFavorite(id) {
  return request({
    url: '/jiu-mount-huangshan/userRouteFavorite/' + id,
    method: 'delete'
  })
}
